

#ifndef _DISPLAY_V4l2_H_
#define _DISPLAY_V4l2_H_

#define DISPLAY_V4L2_DEVICE_NAME  "/dev/video2"
#define DISPLAY_V4L2_NUM_OUT_BUF  3

typedef struct {

  int id;
  Uint8 *virtAddr;
  Uint8 *physAddr;

} DISPLAY_BufInfo;

typedef struct {

  int width;
  int height;
  int lineOffsetV;
  int lineOffsetH;  

} DISPLAY_FrameInfo;

int DISPLAY_v4l2Create(int mode, DISPLAY_FrameInfo *info);
int DISPLAY_v4l2Delete();
int DISPLAY_v4l2GetBuf(DISPLAY_BufInfo *buf);
int DISPLAY_v4l2PutBuf(DISPLAY_BufInfo *buf);
int DISPLAY_v4l2Start( );
int DISPLAY_v4l2Stop( );

#endif 
